import request from '/@/utils/request';
export function deptApi(){
    return {
        getDepList:(params:object)=>{
            return request({
                url: '/api/admin/basic/locations',
                method: 'get',
                params,
            });
        },
        addDep:(data:object)=>{
            return request({
                url: '/api/admin/basic/location',
                method: 'post',
                data,
            });
        },
        editDep:(data:object)=>{
            return request({
                url: '/api/admin/basic/location',
                method: 'put',
                data,
            });
        },
        delDep:(data:object)=>{
            return request({
                url: '/api/admin/basic/location',
                method: 'delete',
                data,
            });
        },
    }
}